<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>引导页</title>
    <style>
        body, p, div {
            margin: 0;
            padding: 0;
        }

        body {
            background: #fff;
            font-size: 16px;
            display: none;
        }

        .main {
            position: relative;
            width: 100%;
        }

        img {
            vertical-align: middle;
        }

        .main .top {
            background: #005aff;
            width: 100%;
            padding: 20px 0;
        }

        .top div {
            text-align: center;
            margin: 10px;
            color: #fff;
        }

        .top img {
            width: 8%;
        }

        .main .arrow {
            position: absolute;
            top: 20px;
            right: 10px;
            width: 15%;
        }

        .main .person {
            width: 100%;
        }
    </style>
    <script type="text/javascript" src="http://pv.sohu.com/cityjson"></script>
    <script>
        /*旧引导页start*/
        (function(window){
            window.mapping = {};
            window.clientUrlMapping = {
                'android':'./download1.html',
                'android_test':'./download.html'
            };
            var url = window.location.href
                ,start = url.indexOf("?") === -1 ? null : url.indexOf("?") + 1
                ,end = url.indexOf("#")
                ,param;
            if(start === null){
                return;
            }else if(end === -1){
                param = url.slice(start);
            }else{
                param = url.slice(start,end);
            }
            param = param.split("&");
            for(var i in param){
                var j = param[i];
                var k_v = decodeURIComponent(j).split('=');
                mapping[k_v[0]] = k_v[1];
            }
            //判断平台
            var sUserAgent = navigator.userAgent;
            var os = 'pc';
            if (sUserAgent.toLowerCase().indexOf('android') > -1 || sUserAgent.indexOf('linux') > -1) {//安卓手机
                os = 'Android';
            } else if (sUserAgent.toLowerCase().indexOf('iphone') > -1) {//苹果手机
                os = 'iOS';
            } else if (sUserAgent.toLowerCase().indexOf('windows phone') > -1) {//winphone手机
                os = 'Windows';
            }
            returnCitySN = returnCitySN ? returnCitySN : {};
//            if(confirm("aid:" + mapping.aid + "\nos:"+ os +"\nip:"+ returnCitySN.cip +"\n是否跳转？")){
////                window.location.href = clientUrlMapping[mapping.aid];
//            }
        })(window);
        /*旧引导页end*/
    </script>
    <script>
        //sdk配置
        var _ajs = _ajs || [];
        window._ajs = _ajs;
        (function () {
            _ajs.push(['aid', mapping.aid]);//广告ID
            _ajs.push(['toUrl', clientUrlMapping[mapping.aid]]);//着陆页地址
            _ajs.push(['mm', '1']);//匹配方式 精准匹配：1 模糊匹配：2
            _ajs.push(['env', 'prd']);//上报环境 测试环境：dev 生产环境：prd
        })();
    </script>
    <script type="text/javascript" src="./libs/md5.js"></script>
    <script type="text/javascript" src="./libs/fp.js"></script>
    <script type="text/javascript" src="./aid1000.js"></script>
</head>
<body style="display: block;">
    <div class="main">
        <div class="top">
            <div><span>点击右上角的&nbsp;</span><img src="img/lead2.png" alt=""><span>&nbsp;按钮</span></div>
            <div><span>选择在</span><img src="img/lead1.png" alt=""><span>Safari中打开</span></div>
        </div>
        <img class="arrow" src="img/lead3.png" alt="">
        <img class="person" src="img/lead4.png" alt="">
    </div>
</body>
</html>

